<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
   <%@ include file="/common/CimsCommon.jsp" %>
   <title>修改合约</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   
</head>
  
<body style="background-color:#FFFFFF">
	<form id="updateNewsFormData" name="updateNewsFormData" isCheck="true" action="com.jy.modules.cims.common.controller.TCMmContractController">
		<div id="formPageSwap">
				<input type="hidden" class="text" id="dtoid" name="id" maxLength="11" value="${dto.id}" />
				<input type="hidden" class="text" id="nextId" name="nextId" maxLength="11" value="${nextId}" />
				<div style="width: 100%;" id="formSwap">
					<div class="expandSwap">
						<div class="ui-widget-header ui-corner-all">
							<span class="text">合约基本信息</span><span class="expandBtn"></span>
						</div> 
						<div class="expandContent">
							<%@include file="/common/cims/tcmmContractContent.jsp"%>
						</div>
					</div>
			 		<div class="expandToolbar">
					 	<c:if test="${action ne 'view'}">
				 			<span class="submitBtn" onclick="next();">保存</span>
				 		</c:if>
				 		<span class="submitBtn" onclick="parent.tabs.close();">关闭</span>
			 		</div>
				</div>
			</div>
	<!-- 保存 关闭 按钮 在 查询页面进行控制 -->  
	</form>
	<script type="text/javascript" src="<%=basePath%>/js/cims/paramManage/jyAndPartner.js"></script>
</body>

<script type="text/javascript">
	function next(){
		//function(formId,currentUrl,linkUrl,action,isClose)
		Cmm.Ajax.carouselAction("updateNewsFormData","tCMmContract","","",true);
	}
   $(document).ready(function(){
	    if(!parent.tabs.carouselChain){
		   	parent.tabs.carouselChain={};
	    }
   		checkedInit();
   		Cmm.util.dateInputInit("updateNewsFormData");
   		Cmm.util.checkDdateInit("dtobeginDate","dtoendDate");
   		cascadeCooperOrgAgreement("dtocooperorgCode","dtoagreementCode");
//    		cascadeCooperorg($("#cooperorg").attr("value"),$("#contract").attr("value"));
	});
</script>
  
</html>
